//
//  ShowMainCollectionViewCell.m
//  demoapp
//
//  Created by MingmingSun on 15/9/9.
//  Copyright (c) 2015年 pingplusplus. All rights reserved.
//

#import "ShowMainCollectionViewCell.h"

@implementation ShowMainCollectionViewCell

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self reloadAllView];
    }
    return self;
}

-(void)reloadAllView{
    for(UIView *v in [self subviews]){
        [v removeFromSuperview];
    }
    CGRect frame = self.frame;
    self.backgroundColor = [UIColor whiteColor];
    self.mainPicImgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
    [self addSubview:self.mainPicImgView];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0,frame.size.height - 20, frame.size.width, 20)];
    self.titleLabel.backgroundColor = [UIColor blackColor];
    self.titleLabel.textColor = [UIColor whiteColor];
    [self addSubview:self.titleLabel];
}

@end
